/**
* 配置路由
**/


const notAuditedList = resolve => {require.ensure(['./audit/not-audited-list.vue'], () => {resolve(require('./audit/not-audited-list.vue'))})}

const auditContent  = resolve => {require.ensure(['./audit/audit-content.vue'], () => {resolve(require('./audit/audit-content.vue'))})}

const reportHandlingList = resolve => {require.ensure(['./report/handling-list.vue'], () => {resolve(require('./report/handling-list.vue'))})}

const reportHandledList = resolve => {require.ensure(['./report/handled-list.vue'], () => {resolve(require('./report/handled-list.vue'))})}

const reportHandleDetail = resolve => {require.ensure(['./report/handle-detail.vue'], () => {resolve(require('./report/handle-detail.vue'))})}
const commentList = resolve => {require.ensure(['./comment/comment-list.vue'], () => {resolve(require('./comment/comment-list.vue'))})}
const reportHandledDetail = resolve => {require.ensure(['./report/handled-detail.vue'], () => {resolve(require('./report/handled-detail.vue'))})}
const subjectList = resolve => {require.ensure(['./subject/subject-list.vue'], () => {resolve(require('./subject/subject-list.vue'))})}
const subjectDetail= resolve => {require.ensure(['./subject/subject-detail.vue'], () => {resolve(require('./subject/subject-detail.vue'))})}
const subjectEdit= resolve => {require.ensure(['./subject/subject-edit.vue'], () => {resolve(require('./subject/subject-edit.vue'))})}
const subjectNew= resolve => {require.ensure(['./subject/subject-new.vue'], () => {resolve(require('./subject/subject-new.vue'))})}

const routers = [
  //待审核列表
  {
    name: 'notAuditedList',
    path: '/not-audited-list',
    component: notAuditedList
  },
  //内容审核
  {
    name: 'auditContent',
    path: '/audit-content/:id',
    component: auditContent
  },
  //举报处理列表
  {
    name: 'reportHandlingList',
    path: '/report-handling-list',
    component: reportHandlingList
  },
  //已处理举报列表
  {
    name: 'reportHandledList',
    path: '/report-handled-list',
    component: reportHandledList
  },
  //举报处理详情
  {
    name: 'reportHandleDetail',
    path: '/report-handle-detail/:pageType',
    component: reportHandleDetail
  },
  //评论列表
  {
    name: 'commentList',
    path: '/comment-list',
    component: commentList
  },
  //已发布的随手拍
  {
    name: 'reportHandledDetail',
    path: '/report-handled-detail/:idNum',
    component: reportHandledDetail
  },
  //专题列表
  {
    name: 'subjectList',
    path: '/subject-list',
    component: subjectList
  },
  //专题详情
  {
    name: 'subjectDetail',
    path: '/subject-detail',
    component: subjectDetail
  },
  {
    name: 'subjectEdit',
    path: '/subject-edit',
    component: subjectEdit
  },
  {
    name: 'subjectNew',
    path: '/subject-new',
    component: subjectNew
  }
]
export default routers
